import { formatPermission } from '@/router/format'
import { storeServiceServiceOrderRoutes } from './service-order'
import { storeUserRoutes } from './user'

const storeOperationRoutes = [{
  path: '/merchant/operation',
  name: 'storeOperation',
  component: () => import(/* webpackChunkName: "store-store-manage" */ '@/views/index'),
  meta: {
    title: '运营管理',
    icon: 'el-icon-office-building'
  },
  redirect: '/store/operation/service-order',
  permission: formatPermission(require.context('./', true, /index\.js/)),
  children: [
    storeUserRoutes,
    storeServiceServiceOrderRoutes
  ],
}]
export default storeOperationRoutes
